package main

import (
	"fmt"
	"time"
)

func main() {
	ch := make(chan int)

	go func() {
		for{
			fmt.Println("1")
			select {
			case <-ch:
				fmt.Println("read ch")
				time.Sleep(1* time.Second)
			}
			fmt.Println("2")
		}
	}()
	fmt.Println("end")
}
